<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>工程概况</title>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
    />
    <link
      rel="stylesheet"
      href="../../layuiadmin/layui/css/layui.css"
      media="all"
    />
    <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all" />
    <link rel="stylesheet" href="../../layuiadmin/style/style.css" media="all" />
  </head>
  <body>
    <div class="layui-fluid">
      <img src="../../layuiadmin/images/backPage.png" class="backPreviousPage" />
      <button class="layui-btn layuiadmin-btn-useradmin backNextBtnn">
        退回
      </button>
      <div class="time_axis">
        <div class="time_box">
          <div class="time_box_list">
            <ul class="time_horizontal"></ul>
          </div>
        </div>
        <img src="../../layuiadmin/images/backPage.png" class="backPreviousPage" />
      </div>
      <div class="projectOverview projectManagementDetailS">
      <ul>
        <li>
          <label>项目编号</label>
          <span class="no"></span>
        </li>
        <li>
          <label>项目名称</label>
          <span class="projectName"></span>
        </li>
        <li>
          <label>申报项名称</label>
          <span class="name"></span>
        </li>
        <li>
          <label>申报类型</label>
          <span class="type"></span>
        </li>
        <li>
          <label>申报人用户名</label>
          <span class="createUser"></span>
        </li>
        <li>
          <label>建设方名称</label>
          <span class="personName"></span>
        </li>
        <li>
          <label>建设方手机</label>
          <span class="phone"></span>
        </li>
        <li>
          <label>建设方邮箱</label>
          <span class="email"></span>
        </li>
        <li>
          <label>建设方全称</label>
          <span class="buildUnitName"></span>
        </li>
        <li>
          <label>联系人姓名</label>
          <span class="contactName"></span>
        </li>
        <li>
          <label>联系方式</label>
          <span class="contactPhone"></span>
        </li>
        <li>
          <label>项目负责人姓名</label>
          <span class="responPerson"></span>
        </li>
        <li>
          <label>项目负责人联系方式</label>
          <span class="responPhone"></span>
        </li>
        <li>
          <label>与轨道交通关系</label>
          <span class="metroRelation"></span>
        </li>
        <li>
          <label>项目地理位置</label>
          <span class="projectAddr"></span>
        </li>
        <li>
          <label>项目状态</label>
          <span class="status"></span>
        </li>
        <li>
          <label>项目概况</label>
          <span class="contentt"></span>
        </li>
        <li>
          <label>管理员工号</label>
          <span class="managerNumber"></span>
        </li>
        <li>
          <label>线路情况</label>
          <span class="lineType"></span>
        </li>
        <li>
          <label>车站</label>
          <span class="stationFlag"></span>
        </li>
        <li>
          <label>区间</label>
          <span class="stationArea"></span>
        </li>
      </ul>
      </div>
      <div class="enclosureListWrap">
        <h4>项目资料</h4>
        <table id="projectFilesTable"  lay-filter="projectFilesTable"></table>         
        <script type="text/html" id="test-table-thead-barDemo">
          <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">按钮1</a>
          <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">按钮2</a>
        </script>
      </div>
      <div class="enclosureListWrap">
        <h4>补充资料</h4>
        <div class="layui-row enclosureListt"></div>
      </div>
      <div class="seePdfBox"></div>
      <div id="returnComments" style="display: none;">
        <form class="layui-form" lay-filter="calendarForm" class="layui-form">
          <div class="layui-form-item">
            <textarea placeholder="" class="layui-textarea" id="commentsTxt">工程信息概况文档不符合规范模板要求,请修改后重新提交。</textarea>
          </div>
          <div class="layui-form-item">
            <div class="changeFileReturn">请选择退回文件:<input lay-skin="primary" type="checkbox" id="c_all" name="type" lay-filter="c_all" value="checkall"/></div>
          </div>
          <div class="layui-form-item">
            <div class="enclosureListPop"></div>
          </div>
          <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">审核人:</label>
              <div class="layui-input-inline">
                <input
                  type="text"
                  name="name"
                  autocomplete="off"
                  class="layui-input"
                 id="projectReviewer"
                />
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">联系方式:</label>
              <div class="layui-input-inline">
                <input
                  type="tel"
                  name="phone"
                  autocomplete="off"
                  class="layui-input"
                  value="xxxxx"
                />
              </div>
            </div>
          </div>
          <div class="layui-form-item meetingScheduleBtn">
            <button
              class="layui-btn"
              type="button"
            >
              取消
            </button>
            <button
              class="layui-btn"
              type="button"
              lay-filter="returnFormSubmit"
              lay-submit
            >
              确定
            </button>
          </div>
        </form>
    </div>
    <script type="text/html" id="iframePDF">
      <div class="iframePDF"></div>
     </script>
    <script src="../../layuiadmin/modules/const_config.js"></script>
    <script src="../../layuiadmin/modules/jTools.js"></script>
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script>
      layui
        .config({
          base: "../../layuiadmin/", //静态资源所在路径
        })
        .extend({
          index: "lib/index", //主入口模块
        })
        .use(["index", "contlist", "table", "element"], function () {
          var table = layui.table,
            $ = layui.$,
            form = layui.form,
          no = layui.data("no").key,
          uuid = layui.data("uuid").key;
          projectOverviewIn(uuid);
         
          //待办描述
          $.ajax({
            type: "post",
            async: true, //异步执行
            url: base_url + "/report/getProgramInfoListByNo",
            headers: {
              Accept: "application/json; charset=utf-8",
              Authorization: layui.sessionData("userToken").key,
            },
            contentType: "application/json",
            data: JSON.stringify({ no: no }),
            success: function (data) {
              var data = data.data.projectList;
              var html = ""
              for (var i = 0; i < data.length; i++) {
                if (i == data.length - 1) {
                  html += `
                  <li class="time_horizontal_part" data-id="${data[i].uuid}">
                      <b class="active"></b>
                      ${data[i].insertDate}<br/>
                  </li>`;
                } else {
                  html += `
                  <li class="time_horizontal_part" data-id="${data[i].uuid}">
                      <b></b>
                      ${data[i].insertDate}<br/>
                  </li>`;
                }
              }
              $(".time_horizontal").append(html);
              $(".time_horizontal_part").on("click", function () {
                var uuid = $(this).attr("data-id");
                $(this).children("b").addClass("active");
                $(this).siblings("li").children("b").removeClass("active");
                projectOverviewIn(uuid);
              });
            },
          });
          var FILE_ID = "";
          //申报类型
          var category="";
          //技术人员工号
          var personNumber="";
          function projectOverviewIn(uuid) {
            //待办描述
            $.ajax({
              type: "post",
              async: true, //异步执行
              url: base_url + "/report/getProgramInfoByUuid",
              headers: {
                Accept: "application/json; charset=utf-8",
                Authorization: layui.sessionData("userToken").key,
              },
              contentType: "application/json",
              data: JSON.stringify({ uuid: uuid }),
              success: function (data) {
                if (data.code == "200") {
                  var summaryData = data.data.summary;
                  var technicalAccessoryList = data.data.technicalAccessoryList;
                  var data = data.data.project;
                  category=data.category;
                  var strr = "";
                  personNumber=data.managerNumber;
                  $(".no").html(data.no);
                  $(".projectName").html(data.projectName);
                  $(".name").html(data.name);
                  $(".type").html(data.type);
                  $(".createUser").html(data.createUser);
                  $(".personName").html(data.personName);
                  $(".phone").html(data.phone);
                  $(".email").html(data.email);
                  $(".buildUnitName").html(data.buildUnitName);
                  $(".contactName").html(data.contactName);
                  $(".contactPhone").html(data.contactPhone);
                  $(".planStartTime").html(data.planStartTime);
                  $(".responPerson").html(data.responPerson);
                  $(".responPhone").html(data.responPhone);
                  $(".metroRelation").html(data.metroRelation);
                  $(".projectAddr").html(data.projectAddr);
                  $(".status").html(data.status);
                  $(".contentt").html(data.content);
                  $(".managerNumber").html(data.managerNumber);
                  $(".projectName").html(data.projectName);
                  $(".lineType").html(data.lineType);
                  $(".stationFlag").html(data.stationFlag);
                  $(".stationArea").html(data.stationArea);
                  if(data.versionType === "0"|| data.flowStatus === "2"){
                    $(".backNextBtnn").text('已退回')
                    $(".backNextBtnn").addClass("layui-btn-disabled").attr("disabled",true);
                  }else{
                    $(".backNextBtnn").text('退回');
                    $(".backNextBtnn").removeClass("layui-btn-disabled").attr("disabled",false);
                  }
                  table.render({
                    elem: "#projectFilesTable",
                    data: summaryData || [],
                    // cellMinWidth: 80,
                    skin: 'row', //行边框风格
                    even: true, //开启隔行背景
                    cols: [
                      [
                        { field: "file_type", title: "附件类型", align: "center" }, //width 支持：数字、百分比和不填写。你还可以通过 minWidth 参数局部定义当前单元格的最小宽度，layui 2.2.1 新增
                        {
                          field: "file_name",
                          title: "附件名称",
                          align: "center",
                        },
                        {
                          field: "versions",
                          title: "版本",
                          align: "center",
                          with:50,
                          templet: function (item) {
                            var versions = item.versions,
                            emc_id = item.emc_id,
                            urlString = item.urlString,
                            divStr = '';
                            if(item.examine == "1"){
                              if(item.exists =="1"){
                                urlString.forEach(function(emcIdItem){
                                  for (var i = 0; i < versions.length; i++){
                                    if(i == versions.length -1){
                                      divStr +=`<div class="editionBox">
                                              <div class='editionCon'>
                                                <a>V${versions[i]}.0</a>
                                                <i class="layui-icon layui-icon-rate-solid" style="font-size: 14px; color: red;"> </i>
                                              </div>
                                              <div class="editionOpea">
                                                <a class="layui-btn layui-btn-xs technicalReviewBtn technicalReviewSee" lay-event="seeProjectFile">查看</a>
                                                <a class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement" lay-event="downProjectFile">下载</a>
                                              </div>
                                            </div>
                                          `
                                    }else{
                                      divStr +=`<div class="editionBox">
                                              <div class='editionCon'>
                                                <a>V${versions[i]}.0</a>
                                                <i class="layui-icon layui-icon-rate-solid" style="font-size: 14px; color: red;"> </i>
                                              </div>
                                              <div class="editionOpea">
                                                <a class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement" lay-event="downProjectFile">下载</a>
                                              </div>
                                            </div>
                                          `
                                    }
                                  }
                                })
                              }else{
                                for (var i = 0; i < versions.length; i++){
                                  if(i == versions.length -1){
                                    divStr +=`<div class="editionBox">
                                            <div class='editionCon'>
                                              <a>V${versions[i]}.0</a>
                                              <i class="layui-icon layui-icon-rate-solid" style="font-size: 14px; color: red;"> </i>
                                            </div>
                                            <div class="editionOpea">
                                              <a class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement" lay-event="downProjectFile">下载</a>
                                            </div>
                                          </div>
                                        `
                                  }else{
                                    divStr +=`<div class="editionBox">
                                            <div class='editionCon'>
                                              <a>V${versions[i]}.0</a>
                                              <i class="layui-icon layui-icon-rate-solid" style="font-size: 14px; color: red;"> </i>
                                            </div>
                                            <div class="editionOpea">
                                              <a class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement" lay-event="downProjectFile">下载</a>
                                            </div>
                                          </div>
                                        `
                                  }
                                }
                              }
                            }else{
                              for (var i = 0; i < versions.length; i++){
                                if(i == versions.length -1){
                                  divStr +=`<div class="editionBox">
                                          <div class='editionCon'>
                                            <a>V${versions[i]}.0</a>
                                            <i class="layui-icon layui-icon-rate-solid" style="font-size: 14px; color: red;"> </i>
                                          </div>
                                          <div class="editionOpea">
                                            <a class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement" lay-event="downProjectFile">下载</a>
                                          </div>
                                        </div>
                                      `
                                }else{
                                  divStr +=`<div class="editionBox">
                                          <div class='editionCon'>
                                            <a>V${versions[i]}.0</a>
                                            <i class="layui-icon layui-icon-rate-solid" style="font-size: 14px; color: red;"> </i>
                                          </div>
                                          <div class="editionOpea">
                                            <a class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement" lay-event="downProjectFile">下载</a>
                                          </div>
                                        </div>
                                      `
                                }
                              }
                            }
                            return divStr
                          }
                        },
                      ],
                    ],
                  });
                  table.on("tool(projectFilesTable)", function (obj) {
                    var urlString = obj.data.urlString,
                      examine = obj.data.examine,
                      exists = obj.data.exists,
                      emc_id = obj.data.emc_id;
                    if (obj.event === "seeProjectFile") { //查看
                      if(examine == "0"){
                        seeProjectFileFun(emc_id)
                      }else if(examine == "1"){
                        seeProjectFileFun(urlString)
                      }
                    }else if(obj.event ==="downProjectFile") {  //下载
                      if(exists == "0"){
                        emc_id.forEach(function(itemUrl){
                          $.ajax({
                            type: "post",
                            async: true, //异步执行
                            url: "http://10.1.49.89:10003/api/FileUpload/DownFileByFileIDAsync",
                            headers: {
                              Accept: "application/json; charset=utf-8",
                              Authorization: layui.sessionData("userToken").key,
                              account:layui.sessionData("userName").key
                            },
                            contentType: "application/json",
                            data: JSON.stringify({ FILE_ID: itemUrl }),
                            success: function (data) {
                              if(data.RESULT = true){
                                // console.log(data.RESPONSE)
                                window.location.href = data.RESPONSE
                              } 
                            },
                          });
                        })
                      }else if(exists == "1"){
                        urlString.forEach(function(itemUrl){
                          window.location.href = itemUrl
                        })
                      }
                    }
                  })
                  function seeProjectFileFun(data){
                    data.forEach(function(emcIdItem){
                      layer.open({
                        title: '<i class="fa fa-plus"></i>&nbsp;附件查看',
                        type: 1,
                        fix: false,
                        skin: "layui-layer-rim",
                        area: ["70%", "90%"],
                        content: $("#iframePDF").html(),
                        success: function () {
                          var Iframe =
                            '<iframe id="Iframe" width="100%" height="800px"></iframe>';
                          $(".iframePDF").html(Iframe);
                          $("#Iframe").attr(
                            "src",
                            "../../layuiadmin/web/viewer.html?file=" + emcIdItem
                          );
                        },
                      });
                    })
                  }
                  if (data.files.length == 0) {
                    $(".enclosureList").html(" ");
                  } else {
                    FILE_ID = data.files[1].fileEmcId;
                    FILE_IDD = data.files[0].fileEmcId;
                    var str = "",
                      strr = "",
                      strrr  = "",
                      item = "";
                    data.files.forEach((item,index) => {
                      isIncludedTxt = item.filetype.indexOf("工程信息概况");
                      if(index < 2){
                        if(item.extName === "pdf" && isIncludedTxt ===0 || item.extName === "PDF" && isIncludedTxt === 0){
                          item = ` <div class="layui-form-item"><input  lay-skin="primary" type="checkbox" name="enclosureItem" lay-filter="c_one" class="c_one" value="${item.filetype}"/><img src='../../layuiadmin/images/pdf.png'/>${item.fileName}</div>`;
                        }else if (item.extName === "docx"){
                          item = ` <div class="layui-form-item"><input  lay-skin="primary" type="checkbox" name="enclosureItem" lay-filter="c_one" class="c_one" value="${item.filetype}"/><img src='../../layuiadmin/images/word.png'/>${item.fileName}</div>`;
                        }else{
                          item = `<div class="layui-form-item"><input  lay-skin="primary" type="checkbox" name="enclosureItem" lay-filter="c_one" class="c_one" value="${item.filetype}"/><img src='../../layuiadmin/images/enclosure.png'/>${item.fileName}</div>`;
                        }
                      }else{
                        if (item.extName === "pdf" || item.extName === "PDF") {
                        item =` <div class="layui-form-item"><input  lay-skin="primary" type="checkbox" name="enclosureItem" lay-filter="c_one" class="c_one" value="${item.filetype}"/><img src='../../layuiadmin/images/pdf.png'/>${item.fileName}</div>`;
                        } else if (item.extName === "docx") {
                        item = ` <div class="layui-form-item"><input  lay-skin="primary" type="checkbox" name="enclosureItem" lay-filter="c_one" class="c_one" value="${item.filetype}"/><img src='../../layuiadmin/images/word.png'/>${item.fileName}</div>`;
                        } else {
                          item = ` <div class="layui-form-item"><input lay-skin="primary" type="checkbox" name="enclosureItem" lay-filter="c_one" class="c_one" value="${item.filetype}"/><img src='../../layuiadmin/images/enclosure.png'/>${item.fileName}</div>`;
                        }
                        $(".enclosureListPop").append(item);
                        form.render()
                      }
                    });
                  }
                  if (technicalAccessoryList.length == 0) {
                    $(".enclosureListt").html(" ");
                  } else {
                    technicalAccessoryList.forEach((item) => {
                      if (item.extName === "pdf" || item.extName === "PDF") {
                        strr += ` <div class="layui-col-md6"><img src='../../layuiadmin/images/pdf.png'/>${item.aessName}<div class="opraBtn" data-id="${item.aessFullnam}"><button class="deleteAttachment layui-btn layui-btn-xs technicalReviewBtn layui-btn-danger" data-id="${item.aessId}">删除</button><button class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement downPdf">下载</button>
                    <button class="seePdf">查看</button></div></div>`;
                      } else if (item.extName === "docx") {
                        strr += ` <div class="layui-col-md6"><img src='../../layuiadmin/images/word.png'/>${item.aessName}<div class="opraBtn" data-id="${item.aessFullnam}"><button class="deleteAttachment layui-btn layui-btn-xs technicalReviewBtn layui-btn-danger" data-id="${item.aessId}">删除</button><button class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement downWord">下载</button>
                   </div></div>`;
                      } else {
                        strr += ` <div class="layui-col-md6">${item.aessName}<div class="opraBtn" data-id="${item.aessFullnam}"><button class="deleteAttachment layui-btn layui-btn-xs technicalReviewBtn layui-btn-danger" data-id="${item.aessId}">删除</button><button class="layui-btn layui-btn-xs technicalReviewBtn technicalRequirement downWord">下载</button>
                   </div></div>`;
                      }
                      $(".enclosureListt").html(strr);
                    });
                  }
                }
              },
            });
          }
          var enclosureId = "";
          $(".enclosureList").on("click", ".downFile", function () {
            window.location.href = $(this).parent().attr("data-id");
          });
          $(".enclosureListL").on("click", ".seePdf", function () {
            var Iframe =
              '<iframe id="Iframe" width="100%" height="800px"></iframe>';
            $(".seePdfBox").html(Iframe);
            $("#Iframe").attr("src","../../layuiadmin/web/viewer.html?file=" + $(this).parent().attr("data-id"));
          });
          $(".enclosureListt").on("click", ".downWord", function () {
            enclosureAessName = $(this).parent().attr("data-id");
            window.location.href = enclosureAessName;
          });
          $(".enclosureListLt").on("click", ".downFileItem", function (){
            var id = $(this).attr("data-id");
            $.ajax({
              type: "post",
              async: true, //异步执行
              url: "http://10.1.49.89:10003/api/FileUpload/DownFileByFileIDAsync",
              headers: {
                Accept: "application/json; charset=utf-8",
                Authorization: layui.sessionData("userToken").key,
                account:layui.sessionData("userName").key
              },
              contentType: "application/json",
              data: JSON.stringify({ FILE_ID: id }),
              success: function (data) {
                if(data.RESULT = true){
                  window.location.href = data.RESPONSE
                } 
              },
            });
          })
          //删除附件
          $(".enclosureListt").on("click", ".deleteAttachment", function () {
            var aessid = $(this).attr("data-id");
            var removeElement = $(this).parent().parent();
            $.ajax({
              type: "post",
              async: true, //异步执行
              url: base_url + "/report/deleteProjectotherattachFileByUuid",
              headers: {
                Accept: "application/json; charset=utf-8",
                Authorization: layui.sessionData("userToken").key,
              },
              contentType: "application/json",
              data: JSON.stringify({ aessId: aessid }),
              success: function (data) {
                if ((data.type = "success")) {
                  layer.confirm("确认删除吗?", function (index) {
                    removeElement.remove();
                    layer.close(index);
                    layer.msg(data.message, { icon: 6 });
                  });
                } else {
                  layer.msg(data.message, { icon: 5 });
                }
              },
            });
          });
          $(".time_horizontal").scrollLeft(
            $(".time_horizontal")[0].scrollWidth
          );
          $(".backPreviousPage").on("click", function () {
            $(this).attr('lay-href',"./pages/technicalReview.html");
          });
          $(".returnComments .closeBtn").on("click", function () {
            $("#returnComments")[0].reset();
            $(".returnComments").hide();
          });
           //全选
           form.on('checkbox(c_all)', function (data) {
              var a = data.elem.checked;
              if (a == true) {
                  $(".c_one").prop("checked", true);
                  form.render('checkbox');
              } else {
                  $(".c_one").prop("checked", false);
                  form.render('checkbox');
              }
  
          });
          //有一个未选中全选取消选中
          form.on('checkbox(c_one)', function (data) {
              var item = $(".c_one");
              for (var i = 0; i < item.length; i++) {
                  if (item[i].checked == false) {
                      $("#c_all").prop("checked", false);
                      form.render('checkbox');
                      break;
                  }
              }
              //如果都勾选了  勾上全选
              var  all=item.length;
              // debugger
              for (var i = 0; i < item.length; i++) {
                  if (item[i].checked == true) {
                      all--;
                  }
              }
              if(all==0){
                $("#c_all").prop("checked", true);
                form.render('checkbox');
              }
          });
          $(".backNextBtnn").on("click", function () {
            layer.open({
              type: 1,
              skin: "demo-class",
              area: ["500", "400"],
              shadeClose: true,
              content: $("#returnComments"),
              title: ["退回意见"],
              success: function (layero, index) {
                $('#projectReviewer').val(layui.sessionData("userName").key)
                form.on("submit(returnFormSubmit)", function (d) {
                 
            var arr = new Array();
            $("input:checkbox[name='enclosureItem']:checked").each(function(i){
                arr[i] = $(this).val();
            });
            //退回意见内容
            var commentsTxt=$("#commentsTxt").val();
            $.ajax({
              type:"post",
              async:true,
              url:"http://10.1.14.200/MMS/api/plotting/checkTechnicalFile",
              contentType:"application/json",
              headers: {
                Accept: "application/json; charset=utf-8",
              },
              data: JSON.stringify({
                no:no,
                type:category,
                opinion:commentsTxt, 
                fileTypeList:arr,
                personNumber:personNumber,
                
            }),
            success:function(data){
              //当报审反馈成功
              if (data.code == 200) {
                //调用技审方法
                $.ajax({
                  type:"post",
                  async:true,
                  url:base_url+"/Technical/processFlow",
                  headers:{
                Accept: "application/json; charset=utf-8",
                Authorization: layui.sessionData("userToken").key,
                  },
                  contentType: "application/json",
                  data:JSON.stringify({
                    no:no,
                    opinion:commentsTxt,
                    type:category,
                    uuid:uuid,
                  }),
                  success:function(data){
                    if(data.code==200){
                      layer.msg(data.message, { icon: 6 });
                    }else{
                      layer.msg(data.message, { icon: 2});
                    }
                  }
                })
            }else{
              //报审的反馈失败
              layer.msg(data.message, { icon: 2});
                }}
              });
                })
              }

            })
          });
          $(".sureReturnComments").on("click", function () {
            $.ajax({
              type: "post",
              async: true, //异步执行
              url: base_url + "/Technical/processFlow",
              contentType: "application/json",
              headers: {
                Accept: "application/json; charset=utf-8",
                Authorization: layui.sessionData("userToken").key,
              },
              data: JSON.stringify({
                flowStatus: "2",
                projectFeedback: $("#commentsTxt").val(),
                uuid: uuid,
              }),
              success: function (data) {
                if (data.code == 200) {
                  layer.msg(data.message, { icon: 6 });
                  $("#returnComments")[0].reset();
                  $(".returnComments").hide();
                } else {
                  layer.msg(data.message, { icon: 5 });
                }
              },
            });
          });
        });
    </script>
  </body>
</html>
